import 'package:sow_app_core/src/entity/captcha.dart';
import 'package:sow_app_core/src/usecase/captcha_image_usecase.dart';
import 'package:sow_app_core/src/usecase/usecase.dart';
import 'package:test/test.dart';

import 'package:sow_app_mock/sow_app_mock.dart';

void main() {
  group('captcha image usecase test group', () {
    test(
      "should return valid String when called",
      () async {
        // arrange
        // act
        final result = await GetCaptchaImageUseCase(
            MockCaptchaImageRepository())(NoParams());
        // assert
        expect(result, isA<Captcha>());
        expect(result.image.length, greaterThan(500));
      },
    );
  });
}
